<template>
	<view>
		<cu-custom :isBack="true">
			<block slot="backText">{{article.title}}</block>
		</cu-custom>
		<view class="margin-left margin-right">
			<mp-html  :content="article.msg"  />
		</view>
	</view>
</template>

<script>
	import * as commonCompanyArticleApi from '@/api/common/commonCompanyArticleApi.js'
	import mpHtml from '@/uni_modules/mp-html/components/mp-html/mp-html.vue'
	export default {
		data() {
			return {
				article: {},
				articleId: null
			}
		},
		computed: {
			themeConfig() {
				return this.$store.state.themeConfig
			}
		},
		components: {
			mpHtml
		},
		onLoad(option) {
			this.articleId = option.articleId
			this.getCompanyArticleContentDetails()
		},
		methods: {
			getCompanyArticleContentDetails() {
				commonCompanyArticleApi.getCompanyArticleContentDetails({
					articleId: this.articleId
				}).then(res => {
					const {
						data
					} = res
					this.article = data
				})
			}
		}
	}
</script>

<style>

</style>
